import { getCategoryList } from "@/services";
import { makeAutoObservable } from "mobx"

class Category{
    constructor(){
        makeAutoObservable(this);
    }
    categoryList = []

    // 获取分类列表
    async getCategoryList(){
        let result = await getCategoryList();
        if(result.statusCode===200){
            this.categoryList=result.data
        }
        
    }
}

export default Category;